Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle response error when body contains no valid json #475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Caviarion
Copy link

@Caviarion Caviarion commented Aug 17, 2023

Describe the change
Handle non json response correctly by returning original response content instead of returning meaningless json unmarshal error

@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #475 (c87f5ea) into master (a14bc10) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #475      +/-   ##
==========================================
+ Coverage   97.07%   97.10%   +0.02%     
==========================================
  Files          17       17              
  Lines         719      726       +7     
==========================================
+ Hits          698      705       +7     
  Misses         15       15              
  Partials        6        6              
Files Changed Coverage Δ
client.go 100.00% <100.00%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant